﻿using System.Collections.Generic;
using System.Threading.Tasks;

namespace Tiens.NotificationHub.Services
{
    public interface IAppConnectionManager
    {
        Task JoinAsync(string userId, string appId, string connectionId);
        Task QuitAsync(string groupName,string appId, string connectionId);
        Task<IEnumerable<string>> GroupsByAppIdAsync(string appId);
        Task<IEnumerable<string>> UsersOnline(string appId);
        Task<int> UsersOnlineNumber(string appId);

        Task<IEnumerable<string>> ConnectionIds(string appId);
        Task<IEnumerable<string>> ConnectionIds(string userId, string appId);
    }

}
